package com.awenhui.demo.feign.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商品房销售动态情况
 *
 * @author zxiaozhou
 * @date 2021-06-14 03:39
 * @since JDK1.8
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@Accessors(chain = true)
@ApiModel
public class SalesOfNewHouseDto implements Serializable {
    private static final long serialVersionUID = -6343921595870729340L;

    @ApiModelProperty(value = "销售数据")
    private SxData xsxx;

    @ApiModelProperty(value = "环比")
    private SxData hb;

    @ApiModelProperty(value = "同比")
    private SxData tb;

    @ApiModelProperty(value = "工作底图访问url")
    private String workPictureUrl;


    @Getter
    @Setter
    @ToString
    @EqualsAndHashCode
    @Accessors(chain = true)
    @ApiModel
    public static class SxData implements Serializable {
        private static final long serialVersionUID = 6264469735926599089L;

        @ApiModelProperty(value = "面积")
        private Double area;

        @ApiModelProperty(value = "均价")
        private Double avgragePrice;

        @ApiModelProperty(value = "数量")
        private Long count;
    }
}
